Control Key Script Behavior Constants
With the Mac OS 8.5 Control Manager, you can use the following constants of type
ControlKeyScriptBehavior
to specify the kind of behavior to be used in an editable text control with respect to changing and locking the keyboard menu as the field is focused. The
ControlKeyScriptBehavior
constants are set and retrieved with the
kControlEditTextKeyScriptBehaviorTag
control data tag constant; for details on
kControlEditTextKeyScriptBehaviorTag
, see
Control Data Tag Constants
.
enum {
kControlKeyScriptBehaviorAllowAnyScript = 'any ',
kControlKeyScriptBehaviorPrefersRoman = 'prmn',
kControlKeyScriptBehaviorRequiresRoman = 'rrmn'
};
typedef UInt32 ControlKeyScriptBehavior;
Constant descriptions
-
kControlKeyScriptBehaviorAllowAnyScript
-
Does not change the current keyboard and allows the user to change the keyboard at will. This is the default for non-password fields.
-
kControlKeyScriptBehaviorPrefersRoman
-
Changes the current keyboard to Roman whenever the editable text field receives focus but allows the user to change the keyboard at will. This is the default for password fields.
-
kControlKeyScriptBehaviorRequiresRoman
-
Changes the current keyboard to Roman whenever the editable text field receives focus and does not allow the user to change the keyboard.
© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)